class student():
    def __init__(self,name):
        self.name=name
    def show(self):
        print('hello')
stu=student("mwy")
lst=[]
lst.append(stu)
for item in lst:
    item.show()

